<!-- target:list -->
<div class="todo-list-page">
    <form name="todoListSearchForm" class="ui-hide">
        <input class="ui-hide" ui="type:text" name="tag" value="${tag}">
    </form>
    <div class="cont-tab" ui="type:NS.ToDoListTab;gesture:false;">
        <div class="cont-item list-cont">
            <strong class="ui-hide"></strong>
            <ul ui="type:mao.ui.AppListView;id:todo-list-view;customEmpty:true;" class="list-items">
                <div>
                    <div class="no-data">
                        <img src="images/base/icon_default.png">
                        <p>暂无数据</p>
                    </div>  
                </div>
            </ul>
        </div>
        <div class="cont-item search">
            <strong class="sort-item search-item">
	            <form ui="type:NS.ToDoSearchText;id:search-text-${num}" name="todoSearchListForm" action="javascript: void(0);">
	                <input type="search" value="" name="searchContent" autocomplete="off" placeholder="搜索">
	                <span class="ui-search-close ui-hide">取消</span>
	            </form>
	        </strong>

            <div class="history" id="todo_history_container"></div>

            <ul ui="type:mao.ui.AppListView;id:todo-search-list-view;customEmpty:true;" class="list-items history-search-list-container">
                <div>
                    <div class="no-data">
                        <img src="images/base/icon_default.png">
                        <p>暂无数据</p>
                    </div>  
                </div>
            </ul>
        </div>
        <!-- for: ${NS.todoSortBarConfigs} as ${item}, ${index} -->
        <form name="todoFilterListForm" class="filter-container cont-item">
            <strong class="sort-item"><span class="sort-btn" ui="id:sort-btn-${num}">筛选</span><span ui="type:NS.CloseSearchBtn;id:close-search-${num}" class="close-btn">取消</span></strong>
            <!-- use: ${item.target}(items=${item.selects}) -->
        </form>
        <!-- /for -->
    </div>
</div>

<!-- target:listItem -->
<!-- use:todo.to-do-item(item=${item},Global=${Global},NS=${NS},todo=true) -->

<!--// 待办事项 -->
<!-- target:to-do-item -->
<!-- var:status = [{}, { 'className': 'approvaling', 'text': '审批中' }, { 'className': 'approval-reject', 'text': '审批被拒绝' }, { 'className': 'approval-pass', 'text': '审批通过' }, { 'className': 'approval-revoke', 'text': '已撤销' }][${item.auditState}] -->
<!-- var:read = ${item.isRead} === 2 ? '' : 'not-read' -->

<!-- if:${item.eventType} === 1 -->
    <!-- var:routeName = ['/contract/detail.court', '/contract/detail.ticket', '/contract/detail.business', '/contract/detail.self', '/contract/detail.common'][${item.subType} -1] -->
<!-- elif:${item.eventType} === 7 -->
    <!-- var:routeName = ['', '/finance/bill.purchase.detail', '/finance/bill.cost.detail', '/finance/bill.loan.detail', '/finance/bill.reimbursement.detail', '/finance/bill.corporatePayment.detail'][${item.subType}] -->
<!-- elif:${item.eventType} === 8 -->
    <!-- var:routeName = '/brand/project.detail' -->
<!-- else -->
    <!-- var:routeName = ['', '/venueOrder/detail', '/finance/bill.detail', '/brand/statement.detail'][${item.eventType} - 1] -->
<!-- /if -->
<li class="to-do-item ${read}" ui="ext-link" data-id="${item.todoEventId}" href="#${routeName}~id=${item.businessId}~DENY_CACHE">
    <!-- <div class="to-do-icon">
        <img class="icon" src="images/index/event-type-icon-${item.eventType}.png" />
    </div> -->
    <div class="to-do-info">
        <div class="to-do-info-title">${item.title}</div>
        <!-- for:${item.contentList} as ${_item} -->
        <div class="to-do-info-text">${_item.key}：${_item.value}</div>
        <!-- /for -->
        <div class="to-do-info-status">
            <span class="info-text">${item.ctime|dateFormat('yyyy-MM-dd')} 来自 审批</span>
            <!-- if:${status.text} -->
            <span class="info-status ${status.className}">${status.text}</span>
            <!-- /if -->
        </div>
    </div>
</li>
